package com.ijunfu.spring.conditional._02_conditional_method;

import com.ijunfu.spring.conditional._02_conditional_method.config.MyConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/5 19:00
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
public class ConditionalMethodMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MyConfig.class);

        System.out.println(ctx.getBean("author"));
    }
}
